/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 车辆类型价格Entity
 * @author HHAOYU
 * @version 2019-07-09
 */
public class CarTypePrice extends DataEntity<CarTypePrice> {
	
	private static final long serialVersionUID = 1L;
	private String communityId;
	private String name;		// 名称
	private Double monthPrice;		// 每月价格
	private Community community;
	
	public CarTypePrice() {
		super();
	}

	public CarTypePrice(String id){
		super(id);
	}

	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Double getMonthPrice() {
		return monthPrice;
	}

	public void setMonthPrice(Double monthPrice) {
		this.monthPrice = monthPrice;
	}

	public String getCommunityId() {
		return communityId;
	}

	public void setCommunityId(String communityId) {
		this.communityId = communityId;
	}

	public Community getCommunity() {
		return community;
	}

	public void setCommunity(Community community) {
		this.community = community;
	}
}